Shiv Shankar Dayal schrieb am 30.12.2023 um 09:40:
I tried this for old style factorial, but it appears much below the
line in which it is used. How can I bring it up?
Replace the \inmframed command with \mcframed.
\define[1]\oldfact
{\mcframed[frame=off,strut=no,leftframe=on,bottomframe
>> \define[1]\oldfact
>> {\inmframed[frame=off,strut=no,leftframe=on,bottomframe=on]{#1}}
>>
>> \starttext
>>
>> \m{\oldfact{n}}
>>
>> \stoptext
>>
>> Wolfgang
>>
>> Thanks a lot. It s
f \framed.
>>
>> \define[1]\oldfact
>> {\inmframed[frame=off,strut=no,leftframe=on,bottomframe=on]{#1}}
>>
>> \starttext
>>
>> \m{\oldfact{n}}
>>
>> \stoptext
>>
>> Wolfgang
>&g
A simple alternative to tikz is the usage of \framed.
>
> \define[1]\oldfact
> {\inmframed[frame=off,strut=no,leftframe=on,bottomframe=on]{#1}}
>
> \starttext
>
> \m{\oldfact{n}}
>
> \stoptext
>
> Wolfgang
>
> Thanks a lot. It should work n
Shiv Shankar Dayal schrieb am 27.12.2023 um 13:31:
What do you expect here to pass as argument to the oldfact command?
I will pass something like n, 5, 10 etc.
A simple alternative to tikz is the usage of \framed.
\define[1]\oldfact
{\inmframed[frame=off,strut=no,leftframe
?
\inmframed{...}
Wolfgang
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma
-example.tex
Search for Alignment in inmframed in the mailing list archives.
% The next statement is part of the core. Included it here for % illustration.
\definemathframed[mcframed] [location=mathematics]
\starttext
\startformula
\ln (1+x) =
\mcframed[background=color
,
backgroundoffset=2pt
]}
\starttext
Since for $|x| 1$ we have
\startformula
\log(1+x) = \graymath{x- \displaystyle{x^2\over2}} + {x^3 \over 3} + \cdots
\stopformula
we may write $\log(1+x) = x + O(x^2)$.
\stoptext
end mframed-example.tex
Search for Alignment in inmframed in the mailing list
} + \cdots
\stopformula
we may write $\log(1+x) = x + O(x^2)$.
\stoptext
end mframed-example.tex
Search for Alignment in inmframed in the mailing list archives.
% The next statement is part of the core. Included it here for % illustration.
\definemathframed[mcframed] [location
On Sat, 15 Jun 2013, Hans Hagen wrote:
On 6/14/2013 9:06 PM, Aditya Mahajan wrote:
\inmframed (and by extension \definemathframed[...][location=low,...])
does not get the right vertical space. For example,
\starttext
\startformula
\ln (1+x) = \inmframed{x - {\frac {x^2}{2}}} + \frac{x^3}{3
\inmframed (and by extension \definemathframed[...][location=low,...])
does not get the right vertical space. For example,
\starttext
\startformula
\ln (1+x) = \inmframed{x - {\frac {x^2}{2}}} + \frac{x^3}{3}-\cdots.
\stopformula
\stoptext
Note that the two fractions do not align
On 6/14/2013 9:06 PM, Aditya Mahajan wrote:
\inmframed (and by extension \definemathframed[...][location=low,...])
does not get the right vertical space. For example,
\starttext
\startformula
\ln (1+x) = \inmframed{x - {\frac {x^2}{2}}} + \frac{x^3}{3}-\cdots.
\stopformula
\stoptext
Note
On 25-1-2012 21:17, Aditya Mahajan wrote:
@Hans: Can we have \definemframed etc as well?
sure, the next beta will have ...
\starttext
\dontleavehmode test \mframed{x} test $x^{\mframed{x}}$ test
\inmframed{x} test $x^{\inmframed{x}}$ test
\definemathframed[whatever][location=low
\framed or \inframed (currently) and there is some
logic in it
\mframed
\inmframed
\starttext
\startformula
\mframed[offset=3pt,background=color,backgroundcolor=red]{A = B +
\inmframed[frame=off,background=color,backgroundcolor=gray]{C}}
\stopformula
\stoptext
14 matches
Mail list logo